package org.mysocial.datamodel;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

@Entity
public class MultipleDestinationMessage extends Message
{
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "message")
	private List<MessageDestination> receivers;

	public List<MessageDestination> getReceivers()
	{
		return receivers;
	}

	public void setReceivers(List<MessageDestination> receivers)
	{
		this.receivers = receivers;
	}
}
